package com.hg.chapter3.condition.service.impl;

import com.hg.chapter3.condition.condition.WindowsCondition;
import com.hg.chapter3.condition.service.OsService;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Service;

//@Service
//@Conditional(WindowsCondition.class)
public class WindowsServiceImpl implements OsService {
    @Override
    public void printOs() {
        System.out.println("i am windows");
    }
}
